﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Interface_Tier;
using Transfer_Object_Tier;
using System.Data;
using Data_Access_Tier;

namespace Business_Tier
{
    public class BT_HRM_CANDIDATEData : MarshalByRefObject, IHRM_CANDIDATEData//nhan f12
    {
        HRM_CANDIDATEData CANDIDATE = new HRM_CANDIDATEData();
        public int HRM_CANDIDATE_Delete(string CandidateCode)
        {
            return CANDIDATE.HRM_CANDIDATE_Delete(CandidateCode);
        }
        public int HRM_CANDIDATE_Disable(string CandidateCode, ref bool Enabled)
        {
            return 1;
        }
        public System.Data.DataSet HRM_CANDIDATE_Get(string CandidateCode)
        {
            return CANDIDATE.HRM_CANDIDATE_Get(CandidateCode);
        }
        public System.Data.DataSet HRM_CANDIDATE_GetList()
        {
            return CANDIDATE.HRM_CANDIDATE_GetList();
        }
        public System.Data.DataSet HRM_CANDIDATE_GetListByRecruitmentCode(string RecruitmentCode)
        {
            return CANDIDATE.HRM_CANDIDATE_GetListByRecruitmentCode(RecruitmentCode);
        }
        public int HRM_CANDIDATE_Insert(string CandidateCode, string RecruitmentCode, string FirstName, 
            string LastName, string Marriage, bool Sex, DateTime Birthday, string BirthPlace, string MainAddress, 
            string ContactAddress, string CellPhone, string HomePhone, string Email, string Photo, string Nationality, 
            string Ethnic, string Religion, string Language, string Informatic, string Professional, string Education, 
            string Job, string IDCard, DateTime IDCardDate, string IDCardPlace, string Health, double Height, double Weight, 
            string Experience, DateTime InputFileDate, string Position1, string Position2, decimal ExpectSalary, int Status, 
            string PersonName, string PersonPhone, string PersonAddress, string PersonJob, string Description)
        {
            return CANDIDATE.HRM_CANDIDATE_Insert(CandidateCode, RecruitmentCode, FirstName,
                LastName, Marriage, Sex, Birthday, BirthPlace, MainAddress, ContactAddress, CellPhone,
                HomePhone, Email, Photo, Nationality, Ethnic, Religion, Language, Informatic, Professional,
                Education, Job, IDCard, IDCardDate, IDCardPlace, Health, Height, Weight, Experience,
                InputFileDate, Position1, Position2, ExpectSalary, Status, PersonName, PersonPhone, PersonAddress, PersonJob, Description);
        }
        public int HRM_CANDIDATE_Save(string CandidateCode, string RecruitmentCode, string FirstName, string LastName, string Marriage, bool Sex, DateTime Birthday, string BirthPlace, string MainAddress, string ContactAddress, string CellPhone, string HomePhone, string Email, string Photo, string Nationality, string Ethnic, string Religion, string Language, string Informatic, string Professional, string Education, string Job, string IDCard, DateTime IDCardDate, string IDCardPlace, string Health, double Height, double Weight, string Experience, DateTime InputFileDate, string Position1, string Position2, decimal ExpectSalary, int Status, string PersonName, string PersonPhone, string PersonAddress, string PersonJob, string Description)
        {
            return CANDIDATE.HRM_CANDIDATE_Save(CandidateCode, RecruitmentCode, FirstName,
                LastName, Marriage, Sex, Birthday, BirthPlace, MainAddress, ContactAddress, CellPhone,
                HomePhone, Email, Photo, Nationality, Ethnic, Religion, Language, Informatic, Professional,
                Education, Job, IDCard, IDCardDate, IDCardPlace, Health, Height, Weight, Experience,
                InputFileDate, Position1, Position2, ExpectSalary, Status, PersonName, PersonPhone, PersonAddress, PersonJob, Description);
        }
        public int HRM_CANDIDATE_Update(string CandidateCode, string RecruitmentCode, string FirstName, string LastName, string Marriage, bool Sex, DateTime Birthday, string BirthPlace, string MainAddress, string ContactAddress, string CellPhone, string HomePhone, string Email, string Photo, string Nationality, string Ethnic, string Religion, string Language, string Informatic, string Professional, string Education, string Job, string IDCard, DateTime IDCardDate, string IDCardPlace, string Health, double Height, double Weight, string Experience, DateTime InputFileDate, string Position1, string Position2, decimal ExpectSalary, int Status, string PersonName, string PersonPhone, string PersonAddress, string PersonJob, string Description)
        {
            return CANDIDATE.HRM_CANDIDATE_Update(CandidateCode, RecruitmentCode, FirstName,
                LastName, Marriage, Sex, Birthday, BirthPlace, MainAddress, ContactAddress, CellPhone,
                HomePhone, Email, Photo, Nationality, Ethnic, Religion, Language, Informatic, Professional,
                Education, Job, IDCard, IDCardDate, IDCardPlace, Health, Height, Weight, Experience,
                InputFileDate, Position1, Position2, ExpectSalary, Status, PersonName, PersonPhone, PersonAddress, PersonJob, Description);
        
        }

    }
}
